package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockBusiness;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author 久思
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2023-09-24 15:22:07
* @Entity com.heima.stock.pojos.StockBusiness
*/
@Mapper
public interface StockBusinessMapper {
    List<StockBusiness> getAll();


    /**
     * 获取所有股票的code
     * @return
     */
    List<String> getStockIds();

    /**
     * 根据参数查询个股主营业务
     * @param code
     * @return
     */
    Map<String, Object> getBySecCodeInfo(String code);
}
